package com.group3.pojo.receive;

import com.group3.controller.Validated.Add;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.ibatis.annotations.Delete;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Set;

/**
 * AddStudentToLessonReceive
 *
 * @author HY
 * 2021/07/06 14:24
 **/


@Data
public class AddStudentToLessonReceive {

    @Min(value = 0, message = "课程安排id不能为空", groups = {Add.class, Delete.class})
    @ApiModelProperty(value = "课程安排id", required = true)
    private Integer lessonId;

    @NotNull(message = "学生不能为空", groups = {Add.class, Delete.class})
    @ApiModelProperty(value = "学生id集合", required = true)
    private Set<Integer> studentIds;
}
